﻿using GraphProcessor;
using IQIGame.Onigao.Logic;
using UnityEngine;

namespace IQIGame.Onigao.GamePlay.Editors
{
    [System.Serializable, NodeMenuItem(SkillEditorConst.SkillEffective + "/" + SkillEditorConst.ExtraTurn, typeof(SkillEditorGraph))]
    public class SkillEffectiveNode_ExtraTurn : SkillEffectiveNode
    {
        protected override ESkillEffectiveType effectType => ESkillEffectiveType.ExtraTurn;

        [InspectorName("次数")] public int count = 1;
        [InspectorName("移除")] public bool remove = false;
        
        protected override SkillCustomConfig CreateConfig()
        {
            var rConfig = new SkillEffective_ExtraTurn_ConfigData()
            {
                count = this.count,
                remove = this.remove
            };
            return rConfig;
        }
    }
}